package com.wenson.behavior.observer;

/**
 * @ClassName: BuyClient
 * @Author: luowangcheng
 * @Date: 2024/6/16 16:38
 * @Description:
 */
public class BuyClient {
    public static void main(String[] args) {
        Shop shop = new Shop();
//        Buyer shaSir = new Buyer("悟净", shop);
//        Buyer baJie = new Buyer("八戒", shop);
//
//        //八戒和悟净轮番抢购
//        baJie.buy();
//        shaSir.buy();
//        baJie.buy();
//        shaSir.buy();
//
//        Buyer tangSir = new Buyer("玄奘", shop);
//        tangSir.buy();
//
//        baJie.buy();
//        shaSir.buy();
//        tangSir.buy();
//
//        shop.setProduct("最新旗舰手机");
//        Buyer wuKong = new Buyer("悟空", shop);
//        wuKong.buy();

        //此后抢购也许还在继续……
    }
}
